﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Teacher:Person
    {

        public string title;
        public string wageno;

        public string Title

        {
            get { return this.title; }
            set { this.title = value; }
        }

        public Teacher(int id, string name, char sex, string cardId, string tel, string title, string wageno)
            : base(id, name, sex, cardId, tel)
        {
            this.title = title;
            this.wageno = wageno;
        }

        public string Wageno

        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void Test1()
        {
            base.Test();
            Console.WriteLine("职称{0}、工资号{1}", this.title, this.wageno);
        }
    }
}
